<gm:page title="LOTONtech Books" authenticate="true">

  <h1>Books</h1>
  <gm:list id="bookList" template="bookListTemplate" class="gm-padded" data="http://www.lulu.com/browse/search.php?fOutput=rss2&fSearch=tony+loton"/>

  <h1>Comments</h1> 
  <gm:list id="commentsList" data="${app}/comments" template="commentsTemplate" />

  <h1>Blog</h1> 
  <gm:list id="blogList" template="blog" class="gm-padded" data="http://people.lulu.com/blogs/blogs_rss.php?blog_id=1116181"/>
  
  <gm:template id="bookListTemplate">
  
    <table class="green-theme">
      <tr repeat="true">
        <td><gm:link label="PURCHASE" ref="atom:link[@rel='alternate']/@href"/></td>
        <td nowrap=true><b><gm:text ref="atom:title"/></b><gm:text ref="atom:content"/></td> 
      </tr>
    </table>

  </gm:template>

  <gm:template id="commentsTemplate">

    <table class="orange-theme">

      <tr width="100%">
        <td width="20" class="gm-header"><gm:create label="New Comment" /></td>
        <td width="100" class="gm-header" align="center">Book</td>
        <td width="100" class="gm-header" align="center">Rating</td>
        <td width="100" class="gm-header" align="center">Comment</td>
      </tr>

      <tr width="100%" repeat="true">
        <td width="20"></td>
        <td width="100">
          <gm:select ref="gd:book">
            <gm:option value="978-0-9556764-4-4" selected="true">Working with Yahoo! Pipes, No Programming Required</gm:option>
            <gm:option value="978-0-9556764-3-7">Introduction to Microsoft popfly, No Programming Required</gm:option>
            <gm:option value="978-0-9556764-2-0">Financial Trading Patterns</gm:option>
            <gm:option value="978-0-9556764-1-3">Safe Family Computing with Windows Vista</gm:option>
            <gm:option value="978-0-9556764-0-6">DON'T LOSE MONEY! (in the Stock Markets)</gm:option>
          </gm:select>
        </td>

        <td width="100"><gm:rating ref="gd:bookRating"/></td>
        <td width="100"><gm:text ref="gd:comment"/></td>
        <td width="20"><gm:editButtons/></td>

      </tr>
      <tr/>

    </table>
    
    </gm:template>

</gm:page>